@import "@/var.scss";

.jiandaoyun {
  .contact-us {
    width: 56px;
    height: 277px;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    right: 10px;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 998;
    border-radius: 8px;
    .contact-button {
      position: relative;
      width: 100%;
      display: flex;
      justify-content: center;
      flex-direction: column;
      transition: background-color 218ms;
      text-align: center;
      cursor: pointer;
      border-radius: 8px;
      &:not(:last-child) {
        height: 75px;
      }
      .iconfont {
        font-size: 22px;
        color: #91a1b7;
      }
      .name {
        color: #1f2d3d;
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 15px;
        margin-top: 4px;
      }
      &:hover {
        background: linear-gradient(to bottom left, $green, #0db3a588);
        .iconfont,
        .name {
          color: #fff;
        }
      }
      &.back-top {
        flex: auto;
        &:before {
          content: "";
          position: absolute;
          top: 0;
          left: 12px;
          width: 32px;
          height: 1px;
          background: #e9e9e9;
        }
        &:hover {
          &:before {
            content: none;
          }
        }
      }
      &.phone-contact {
        .phone-block {
          position: absolute;
          top: 10px;
          left: -130px;
          width: 120px;
          height: 56px;
          box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
          padding: 10px 14px;
          background: #fff;
          border-radius: 2px;
          display: none;
          &:hover {
            display: block;
          }
          p {
            font-size: 12px;
            text-align: left;
            line-height: 18px;
            color: #1f2d3d;
            font-weight: 500;
          }
          .color-green {
            color: $green;
            font-weight: 400;
          }
        }
        &:hover {
          .phone-block {
            display: block;
          }
        }
      }
      &.weixin-contact {
        .weixin-block {
          position: absolute;
          top: -78px;
          left: -208px;
          width: 200px;
          height: 230px;
          box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
          padding: 14px;
          background: #fff;
          border-radius: 8px;
          display: none;
          &:hover {
            display: block;
          }
          p {
            font-size: 12px;
            text-align: left;
            line-height: 18px;
            color: #1f2d3d;
            font-weight: 500;
            margin-top: 8px;
          }
        }
        &:hover {
          .weixin-block {
            display: block;
          }
        }
      }
    }
  }
}
